﻿using System;
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.Domain.Entities;

namespace PasteLoggerBoard.reportmodels
{
    /// <summary>
    /// 路径数据报表
    /// </summary>
    [Index(nameof(DataDate),IsUnique =false)]
    public class PathDayReport : Entity<int>
    {
        /// <summary>
        /// 应用名称
        /// </summary>
        [MaxLength(16)]
        public string AppName { get; set; } = "";

        /// <summary>
        /// 报表时间
        /// </summary>
        public DateTime DataDate { get; set; } = DateTime.Now;

        /// <summary>
        /// 访问路径 128
        /// </summary>
        [MaxLength(128)]
        public string Path { get; set; }

        /// <summary>
        /// 发生次数
        /// </summary>
        public int HitTime { get; set; }

    }
}
